 <div id="headerPage">
    <span>Cursos</span>
</div>
<div style="text-align:left;" id="box">
    <form style="width:430px; background-color: #f0f0f0; padding:15px 0px 15px 15px; border:1px solid;" class="form2" method="POST" action="">
        <label><span>Nome do Curso:</span> 
           <input onBlur="gravaValor(this)" style="width:270px" type="text" name="nome_curso" value="<?php echo (isset($_COOKIE['curso'])) ? $_COOKIE['curso'] : '';?>">
        </label><br/>
        <label><span>Disciplinas:</span>
        <fieldset style="width:250px">
                    <legend align="right">
                        <a class="btNoMaginAndLink open-linkMat" title="Adicionar disciplina" href="index.php?modulo=cursos&page=gerenciar&items=1&add-curso=1">Adicionar</a>
                    </legend>
                    <table class="table" style="margin-top:5px;">
                        <thead>
                            <tr>
                                <th width="420px">Disciplina</th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            if ($sessao->getVar('dis') != null) {
                                $i=0;
                                foreach ($sessao->getVar('dis') as $item){
                                    $color = ($i % 2) == 0 ? '#ffffff' : '#e0e0e0';
                                    echo "<tr bgcolor='$color'>
                                            <td style='padding-left:4px'>{$item['descricao_item']}</td>
                                            <td align=center ><a title='Excluir item' href='index.php?modulo=cursos&page=gerenciar&nome={$item['descricao_item']}&del=1'>
                                                <img src='app.misc/images/ico_delete.png'></a></td> 
                                        </tr>"; 

                                    $i++;          
                                }
                            }else{
                                echo "<tr bgcolor=#ffffff align=center >
                                    <td colspan=4>Nenhum item Adicionado!</td>
                                    </tr>";
                            }
                            ?>
                        </tbody>
                    </table>
                </fieldset>
        </label><br/>
        <label><span style="margin-bottom: 80px;">Fases:</span></label>
        <input type="radio" name="fases" value="3"/>3
        <input type="radio" checked="checked" name="fases" value="4"/>4
        <br/>
        
        <input style="margin-left:0;" type="submit" value="Salvar" name="save" />
        <input type="button" value="Voltar" name="busca" onclick="javascript:location='index.php?modulo=solicitacoes&page=gerar'"/>
    </form>
</div>

<div width="480" id="janela-dialogMat" class="ui-draggable">
    <form id="form-dialogMat" method="POST" action="">
        <label>
            <span>Disciplina</span>
            <input style="width:300px;" type="text" name="nome_disciplina">
        </label>
    </form>
</div>